<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/3/3
  Time: 15:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>用户列表</h1>
    <form action="/user/findByName" method="post">
    搜索:<input type="text" name="name">&nbsp;
    <input type="submit" value="搜索"></form>
    <a href="/user/readlySave">添加</a>
    <table border="1">
        <tr>
            <td>id</td>
            <td>名字</td>
            <td>钱数</td>
            <td>操作</td>
        </tr>
        <tr>
            <c:forEach var="list" items="${accountList}">
                <tr>
                <td>${list.id}</td>
                <td>${list.name}</td>
                <td>${list.money}</td>
                <td>
                    &nbsp;<a href="/user/updateReadly?id=${list.id}">修改</a>&nbsp;&nbsp;
                    <a href="/user/delete/${list.id}">删除</a>&nbsp;
                </td>
                </tr>
            </c:forEach>
        </tr>
    </table>
</body>
</html>
